package com.zy.server.controller;


import com.zy.server.service.OsslogService;
import com.zy.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 张鑫
 * @since 2020-11-27
 */
@RestController
@RequestMapping("/api/osslog")
public class OsslogController {

    @Autowired
    private OsslogService osslogService;

    // 头像等文件上传
    @PostMapping("/upload.do")
    public R upload(MultipartFile file, String token) {
        return osslogService.upload(file,token);
    }

}
